﻿package {

	import org.cove.ape.*;

	public class Terrain extends Group {
		function Terrain() {

			var floor:RectangleParticle = new RectangleParticle(400,590,800,20,0,true);
			floor.setStyle(0, 0x333333, 1, 0x333333);
			addParticle(floor);

			var ceil:RectangleParticle = new RectangleParticle(400,10,800,20,0,true);
			ceil.setStyle(0, 0x333333, 1, 0x333333);
			addParticle(ceil);

			var leftWall:RectangleParticle = new RectangleParticle(10,300,20,600,0,true);
			leftWall.setStyle(0, 0x333333, 1, 0x333333);
			addParticle(leftWall);

			var rightWall:RectangleParticle = new RectangleParticle(790,300,20,600,0,true);
			rightWall.setStyle(0, 0x333333, 1, 0x333333);
			addParticle(rightWall);

			var centerCliff:RectangleParticle = new RectangleParticle(400,500,200,10,0,true);
			centerCliff.setStyle(0, 0x333333, 1, 0x333333);
			addParticle(centerCliff);

			var leftCliff:RectangleParticle = new RectangleParticle(200,300,200,10,0,true);
			leftCliff.setStyle(0, 0x333333, 1, 0x333333);
			addParticle(leftCliff);

			var rightCliff:RectangleParticle = new RectangleParticle(600,300,200,10,0,true);
			rightCliff.setStyle(0, 0x333333, 1, 0x333333);
			addParticle(rightCliff);

			var topCliff:RectangleParticle = new RectangleParticle(400,150,200,10,0,true);
			topCliff.setStyle(0, 0x333333, 1, 0x333333);
			addParticle(topCliff);

		}
	}
}